package com.example.gateway;

import org.noear.solon.Solon;
import org.noear.solon.annotation.SolonMain;
import org.noear.solon.web.cors.CrossFilter;

@SolonMain
public class GatewayApp {
    public static void main(String[] args) {

        Solon.start(GatewayApp.class, args, app->{
            app.filter(-1, new CrossFilter().allowedOrigins("*")); //加-1 优先级更高
        });
    }
}
